patch -Np1 -i ../0001-SNA-fix-PRIME-output-support-since-xserver-1.20.patch

  NOCONFIGURE=1 ./autogen.sh
export CFLAGS=${CFLAGS/-fno-plt}
  export CXXFLAGS=${CXXFLAGS/-fno-plt}
  export LDFLAGS=${LDFLAGS/,-z,now}

  ./configure --prefix=/usr \
    --libexecdir=/usr/lib \
    --with-default-dri=3
  make